import service from '@/utils/request'

// @Tags ArcBend
// @Summary 创建片弧弯
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArcBend true "创建片弧弯"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /arcBend/createArcBend [post]
export const createArcBend = (data) => {
  return service({
    url: '/arcBend/createArcBend',
    method: 'post',
    data
  })
}

// @Tags ArcBend
// @Summary 删除片弧弯
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArcBend true "删除片弧弯"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /arcBend/deleteArcBend [delete]
export const deleteArcBend = (params) => {
  return service({
    url: '/arcBend/deleteArcBend',
    method: 'delete',
    params
  })
}

// @Tags ArcBend
// @Summary 批量删除片弧弯
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除片弧弯"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /arcBend/deleteArcBend [delete]
export const deleteArcBendByIds = (params) => {
  return service({
    url: '/arcBend/deleteArcBendByIds',
    method: 'delete',
    params
  })
}

// @Tags ArcBend
// @Summary 更新片弧弯
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArcBend true "更新片弧弯"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /arcBend/updateArcBend [put]
export const updateArcBend = (data) => {
  return service({
    url: '/arcBend/updateArcBend',
    method: 'put',
    data
  })
}

// @Tags ArcBend
// @Summary 用id查询片弧弯
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ArcBend true "用id查询片弧弯"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /arcBend/findArcBend [get]
export const findArcBend = (params) => {
  return service({
    url: '/arcBend/findArcBend',
    method: 'get',
    params
  })
}

// @Tags ArcBend
// @Summary 分页获取片弧弯列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取片弧弯列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /arcBend/getArcBendList [get]
export const getArcBendList = (params) => {
  return service({
    url: '/arcBend/getArcBendList',
    method: 'get',
    params
  })
}
